import request from "@/utils/request";
import cfg from "@/config/config";

const ztGlbcDep = {
  //根据单号获取详单人员信息
  getGlbcList: param => {
    return request("post", cfg.apiUrl + "api/ztGlbcDep/getGlbcList", param);
  },

  /**方法savaBdGlbcDep
   * 保存规律班次与部门
   * @param depSerial 部门ID
   * @param bh 规律ID(xx,xx,xx,xx)
   * @param request
   * @return
   * @throws UnknownHostException
   */
  savaBdGlbcDep: param => {
    return request("post", cfg.apiUrl + "api/ztGlbcDep/savaBdGlbcDep", param);
  },

  /**方法deleteGlbcDep
   * 保存规律班次与部门
   * @param ztGlbcDepDto id 规律班次与部门配置表ID
   * @param request
   * @return
   * @throws UnknownHostException
   */
  deleteGlbcDep: param => {
    return request("post", cfg.apiUrl + "api/ztGlbcDep/deleteGlbcDep", param);
  }
};

export default ztGlbcDep;
